<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理员 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid1">
<div class="layui-row layui-col-space151">
<div class="layui-col-md12">
<div class="layui-card">
<div style="height: calc(100vh - 20px);" class="layui-card-body">
<form class="layui-form" action="">
<div class="layui-form-item">
<label class="layui-form-label">关联模版</label>
<div class="layui-input-inline">
<div style="width: 350px;" class="layui-inline">
<select id="template" lay-filter="template" name="template">
<option value="">请选择模版</option>
<?php
$path=HDSYS_DIR_SYS . 'templates';
$temp_array=open_list_dir_t($path);
foreach ($temp_array as $param_value) {
if (is_dir($path . '/' . $param_value)) {
$param_josn_array=call_my_get_templates_info($param_value);
$param_showname=$param_josn_array['name']=="" ? $param_value : $param_josn_array['name'] . "  ({$param_value})";
echo "<option value='{$param_value}'>{$param_showname}</option>";
}
}
?>
</select>
</div>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item ">
<label class="layui-form-label ">绑定域名</label>
<div style="width: 350px;" class="layui-input-inline">
<input type="text" name="domain" placeholder="hdsyscms.com" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item">
<label class="layui-form-label "></label>
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="post">确认添加</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use(['form', 'layer'], function() {var admin=layui.admin,$=layui.$,form=layui.form;form.on('submit(post)', function(data) {data=data.field;if (data.name=='') {layer.msg('标签中文名称不能空');return false;}$.ajax({type: "post",url: 'index.php?m=manage&c=<?php echo set_get('c') ?>&a=add_ajax',data: data,dataType: "json",success: function(ret) {layer.msg(ret.msg);if (ret.code==1) {parent.layui.table.reload('test-table-toolbar', {page: {curr: 1}});var index=parent.layer.getFrameIndex(window.name);parent.layer.close(index);parent.hdsyssetmode(filename);}}});return false;});});</script>
</body>
</html>